﻿using CommunityToolkit.Mvvm.Messaging;

namespace MG.SmartHMI.View
{
    /// <summary>
    /// SlnView.xaml 的交互逻辑
    /// </summary>
    public partial class SlnView : System.Windows.Controls.UserControl
    {
        public SlnView()
        {
            InitializeComponent();
            Register();
        }

        private void Register()
        {
        }

        private void UserControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            WeakReferenceMessenger.Default.Send(String.Empty, "SlnViewLoadSignal");
        }

        private void UserControl_Unloaded(object sender, System.Windows.RoutedEventArgs e)
        {
            WeakReferenceMessenger.Default.Send(String.Empty, "SlnViewUnLoadSignal");
        }
    }
}